package com.zhangxun.feign;

import com.zhangxun.domain.Prod;
import com.zhangxun.domain.Sku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("product-service")
public interface BasketProdFeign {
    @PostMapping("/prod/prod/loadProdByIds")
    List<Prod> loadProdByIds(@RequestBody List<Long> prodIdList);

    @PostMapping("/prod/prod/loadSkuByIds")
    List<Sku> loadSkuByIds(@RequestBody List<Long> skuIdList);
}
